/**
 * 
 */
package org.jenkon.decorator;

import org.jenkon.converter.Converter;

/**
 * @author Jens Konopka
 * 
 * @param <F> the type of the source
 * @param <T> the type of the destination
 */
public abstract class ConverterDecorator<F, T> implements Converter<F, T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8431149308384841094L;

	private final Converter<F, T> converter;

	/**
	 * @param converter the delegating converter
	 */
	public ConverterDecorator(final Converter<F, T> converter) {
		this.converter = converter;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jenkon.converter.Converter#convert(java.lang.Object)
	 */
	public T convert(final F value) {
		return converter.convert(value);
	}

}
